﻿{$header}<div id="main" class="main" >
    <div class="content">
  <form class="form-horizontal well" method='post' id="form1" action="__URL__/massUpdate/">
  <h3 class="heading">批量编辑产品 [ <a href="__URL__">返回列表</a> ]</h3>
<div id="result" class="result none"></div>
<table cellpadding=3 cellspacing=3 >
<tr>
	<td class="tRight" >修改的产品：</td>
	<td class="tLeft" >
            <table class="table table-bordered table-striped">
                <tr><th>条码</th><th>产品名称</th></tr>
                <volist name="list" id="pd">
                    <tr><td>{$pd.tm}</td><td><input type="hidden" name="product_id[]" value="{$pd.id}">{$pd.name}</td></tr>
                </volist>
            </table>
        </td>
</tr>
<tr>
	<td class="tRight" ><b>说明：</b></td>
	<td class="tLeft" style="background:#CC9933">以下字段如果未改变默认值或填入新值，则视为不修改该字段
        </td>
</tr>
<tr>
	<td class="tRight" >注册证号：</td>
	<td class="tLeft" >
            <input type="text" name="regcode" value="{$vo.regcode}" class="input-xxlarge">
        </td>
</tr>
<tr>
	<td class="tRight" >人工编码：</td>
	<td class="tLeft" >
            <input type="text" name="helpword" value="{$vo.helpword}" class="large">默认拼音首字母，方便快速查询
        </td>
</tr>
<tr>
	<td class="tRight" >类别：</td>
        <td class="tLeft" >
            <select name="cat_id">
                <option value="-1" selected >--保持原分类--</option>
                <option value="0" >无上级分类</option>
                <volist name="cate_list" id="list">
                    <option value="{$list.id}" <eq name="vo.cat_id" value="$list.id">selected</eq> >{$list.level}{$list.name}</option>
                </volist>
            </select>
        </td>
</tr>
<tr>
	<td class="tRight" >单位：</td>
	<td class="tLeft" >
            <select name="unit_id">
                <option value="-1">--保持原单位--</option>
                <volist name="units" id="ut">
                    <option value="{$key}" <eq name="vo.unit_id" value="$key">selected</eq> >{$ut}</option>
                </volist>
            </select>
        </td>
</tr>
<tr>
	<td class="tRight" >默认供应商：</td>
	<td class="tLeft" >
            <select name="supplier_id_default">
                <option value="-1">--保持原供应商--</option>
                <volist name="suppliers" id="sp">
                    <option value="{$key}" <eq name="vo.supplier_id_default" value="$key">selected</eq> >{$sp}</option>
                </volist>
            </select>
        </td>
</tr>
<tr>
	<td class="tRight" >默认进价：</td>
	<td class="tLeft" >
            <input type="text" name="cost_default" value="{$vo.cost_default}" class="large">
        </td>
</tr>
<tr>
	<td class="tRight" >默认零售价：</td>
	<td class="tLeft" >
            <input type="text" name="sale_price_default" value="{$vo.sale_price_default}" class="large">
        </td>
</tr>
<tr>
	<td class="tRight" >默认批发价：</td>
	<td class="tLeft" >
            <input type="text" name="wholesale_price_default" value="{$vo.wholesale_price_default}" class="large">
        </td>
</tr>
<tr>
	<td class="tRight" >库存报警点：</td>
	<td class="tLeft" >
            <input type="text" name="minstock" value="{$vo.minstock}" class="small">默认为0，无限制
        </td>
</tr>

<tr>
	<td class="tRight tTop">备注：</td>
	<td class="tLeft"><textarea class="large bLeft"  name="remark" style="width:650px;height:100px;">{$vo.remark}</textarea></td>
</tr>
<tr>
	<td class="tRight">状态：</td>
        <td class="tLeft">
            <SELECT class="small bLeft"   name="status">
                <option value ="-1" selected>保持原状态</option>
                <option <eq name="vo.status" value="1" >selected</eq> value="1">启用</option>
                <option <eq name="vo.status" value="0" >selected</eq> value="0">禁用</option>
            </SELECT>
        </td>
</tr>
<tr>
	<td></td>
	<td class="center" width="300">
	<button type="submit" class="btn btn-primary"><i class="icon-ok icon-white"></i> 保存</button>
	<button type="reset" onclick="javascript:history.back()" class="btn btn-primary offset1"><i class="icon-arrow-left icon-white"></i> 返回</button>
	</td>
</tr>
</table>
</form>
</div>
</div>
<script type="text/vbscript">
function vbChr(c)
    vbChr = chr(c)
end function

function vbAsc(n)
vbAsc = asc(n)
end function
</script>
<load href="__PUBLIC__/Js/py.js"/>
